const Login = () => import("../../views/login/index.vue");
const Layout = () => import("../../layout/index.vue");
const NotFind = () => import("../../views/notFind/index.vue");
const Home = () => import("../../views/home/home.vue");

const commonRoutes = [
  {
    path: "/login",
    name: "login",
    component: Login,
  },
  {
    path: "/",
    component: Layout,
    children: [
      {
        path: "/:catchAll(.*)",
        name: "404",
        component: NotFind,
      },
      {
        path: "/",
        name: "home",
        component: Home,
        meta: {
          icon: "HomeOutlined",
          title: "首页",
        },
      },
    ],
  },
];

export default commonRoutes;
